#include <stdio.h>
int main(){
    float  p = 3.99;
    int w = 2;
    //隐式转换
//    double sum = (int)p * w;
//    double sum = (int)p * w;
    //(数据类型）强制类型转换运算符，不会四舍五入
    int sum = (int)p * w;
    printf("%d\n",sum);
    return 0;
}